package util;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

@SuppressWarnings("serial")
public class FileNameUtil implements Serializable {

	public static String getFileName() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
		int randomNum = new Random().nextInt(9999);
		StringBuffer sb = new StringBuffer();
		sb.append(sdf.format(new Date()));
		sb.append(randomNum);
		return sb.toString();
	}

	public static void main(String[] args) {
		System.out.println(getFileName());
	}
}
